package yt.demo.appcommontools.utils.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "file.storage")
@Data
public class FileStorageConfig {

    private String defaultStorage;  // 默认存储类型
    private Storage local;
    private Storage aliyun;

    @Data
    public static class Storage {
        private String uploadDir;
        private String endpoint;
        private String accessKeyId;
        private String accessKeySecret;
        private String bucketName;

    }

}
